\chapter{\bf Código da Questão 2}\label{ap:cod_q2}

\lstset{language=matlab,
        numbers=left,
        basicstyle=\scriptsize,
        stepnumber=2,
        numbersep=10pt,
        showspaces=false,
        showtabs=false,
        showstringspaces=false,
        morecomment=[l]{\%}
        inputencoding={utf-8}
        extendedchars=true
        }

\label{ap:cod_q2}
\lstinputlisting{scripts_matlab/q2.m}
